package com.xiao;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * RabbitAutoConfiguration
 * 1、自动配置连接工场
 * 2、RabbitProperties 封装了 RabbitMQ的配置
 */
@SpringBootApplication
@EnableRabbit//开启
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
